package com.iplay.service.user.userInfo;

import java.util.Optional;

import org.springframework.web.multipart.MultipartFile;

import com.iplay.dto.ApiResponse;
import com.iplay.dto.user.UserBasicInfoDTO;
import com.iplay.dto.user.UserCashbackInfoDTO;

public interface UserInfoService {

	Optional<UserCashbackInfoDTO> findUserCashbackInfoByUserId(int id);

	UserCashbackInfoDTO updateCashbackInfo(int userId,  double completedCashbackChanges, double pendingCashbackChanges);
	
	void initializeUserInfo(int userId);
	
	boolean deleteUserInfo(int userId);
	
	ApiResponse<?> updateAvatar(int userId, MultipartFile file);
	
	ApiResponse<?> updatePhone(int userId, String phone);
	
	ApiResponse<?> updateEmail(int userId, String email);
	
	ApiResponse<?> updateUsername(int userId, String username);
	
	UserBasicInfoDTO findUserBasicInfoByUserId(int userId);
}
